﻿
// Will load the next banner for that particular zone
function Load(zone) {
   
    // How can this be based off the install directory??
    var url = "/bannermanagement/advertisement/getadid.aspx?zone=" + zone;

    var req = new XMLHttpRequest();

    req.open("GET", url, false);
    req.send(null);
 
    var adId = req.responseText;
  //TODO this is for the old format
    document.write("<a href='/BannerAdvertisement/ClickThrough.aspx?ID=" + adId + "' border='0' ><img src='/BannerAdvertisement/LoadBanner.aspx?ID=" + adId + "'/></a>");
}
